package com.chuanke.ckfamily.service.finance;

import com.chuanke.ckfamily.dao.finance.model.PacketFinace;
import com.chuanke.ckfamily.service.exception.CFException;
import com.weijie.core.IBaseBiz;

public interface PacketFinaceService extends IBaseBiz<PacketFinace> {

	/**
	 * 红包分成
	 *
	 * @param fid
	 * @param money
	 */
	void addForCount(Long fid, Long money);

	/**
	 * 发红包
	 * 
	 * @param fid
	 * @param pid
	 * @param money
	 * @throws CFException
	 */
	void sendFamilyPacket(Long fid, Long pid, Long money) throws CFException;

	/**
	 * 红包退回
	 * 
	 * @param fid
	 * @param pid
	 * @param money
	 */
	void backFamilyPacket(Long fid, Long pid, Long money) throws CFException;
	/**
	 * 创建家族，赠送家族红包
	 * @param fid
	 * @param money
	 */
	void addForSystem(Long fid, Long money);
}